package frametest;

import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.events.ControlListener;
import org.eclipse.swt.events.DragDetectListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.ProgressBar;
import org.eclipse.swt.widgets.Slider;
import org.eclipse.ui.part.ViewPart;

public class TopLeftView extends ViewPart {
	private Slider sl;
	private Slider s2;
	private RowLayout rl;
	String x;
	public TopLeftView() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void createPartControl(Composite parent) {
		// TODO Auto-generated method stub
		rl = new RowLayout();
		parent.setLayout(rl);
		sl = new Slider(parent, PROP_TITLE);
		sl.setValues(1000, 0, 1050, 50, 50, 100);
		s2 = new Slider(parent, PROP_TITLE);
	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub
		
		//getWindowConfigurer().getActionBarConfigurer().getStatusLineManager().setMessage("TopLeftView");
		System.out.println("get Focus");
		getViewSite().getActionBars().getStatusLineManager().setMessage("TopLeftView");
		System.out.println(sl.getData());
		System.out.println(sl.getSelection());
		
	}
	
	

}
